package zfl.fanglong.cn.domain;


public class User{
  private Long id;
  private String userName;
  private String password;
  private String gender;
  private String comefromInfo="where?";
  
public Long getId() {
	return id;
}
public void setId(Long id) {
	this.id = id;
}
public String getGender() {
	return gender;
}
public void setGender(String gender) {
	this.gender = gender;
}
public String getUserName() {
	return userName;
}
public void setUserName(String userName) {
	this.userName = userName;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
@Override
public boolean equals(Object obj) {
	// TODO Auto-generated method stub
	if(obj instanceof User){
	  User objUser = (User)obj;
	  if(objUser!=null&&userName!=null&&password!=null&&objUser.getUserName()!=null&&objUser.getPassword()!=null&&objUser.getUserName().equals(userName)
			  &&objUser.getPassword().equals(password)){
		  return true;
	  }else{
		  return false;
	  }
	}else{
		return false;
	}
	
}
public String getComefromInfo() {
	return comefromInfo;
}
public void setComefromInfo(String comefromInfo) {
	this.comefromInfo = comefromInfo;
}
  
}
